<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="WUKONG 1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path_hgs']; ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_var['ecs_css_path_users']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'jquery-1.7.1.min.js,jquery.json.js,transport.js,hgsstyle.js,hgscommon.js')); ?>
</head>

<body id="TOTOP" style=" background-color:#fafafa;">
<div class="main">
	<div class="dw_head"></div>
	<div class="dw_nav" name="dw_nav" id="dw_nav"></div>
	<?php if ($this->_var['banners']): ?>
    <div class="banner" id="banner">
    
        <div id="banner_list" class="banner_list"> 
        	<?php $_from = $this->_var['banners']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'banner');if (count($_from)):
    foreach ($_from AS $this->_var['banner']):
?>
            <a target="_blank" href="<?php echo $this->_var['banner']['link']; ?>" style="display:inline-block;width:100%;height:320px;background:url(<?php echo $this->_var['banner']['url']; ?>) no-repeat scroll center"></a>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        </div> 
        <div class="lunbo_btn">
            <ul> 
            	<?php $_from = $this->_var['banners']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'banner');$this->_foreach['bn'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['bn']['total'] > 0):
    foreach ($_from AS $this->_var['banner']):
        $this->_foreach['bn']['iteration']++;
?>
                <li vid="<?php echo $this->_foreach['bn']['iteration']; ?>"></li> 
                <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            </ul>
        </div>
    </div>
    <?php endif; ?>
	<div class="mainbg" name="MainName">

		<?php echo $this->fetch('library/page_header.lbi'); ?>
 
  
	
		<div class="product">
        	<div class="lunbo_zhanwei"></div>
			 <div class="index_gonggao">
				<div class="index_gonggao_txt">
				<div class="index_gonggao_title">活动区</div>
				<div class="index_gonggao_cont_txt" id="ch_gg"> 

					  <div >
						<?php $_from = $this->_var['class_articles_4']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'article');if (count($_from)):
    foreach ($_from AS $this->_var['article']):
?>
					      <li><a href="<?php echo $this->_var['article']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['article']['title']); ?>"><?php echo sub_str($this->_var['article']['short_title'],15); ?></a></li>
					   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	
					   </div>
					
				</div>
				<div class="index_gonggao_cont_right">
					<div class="index_gonggao_right_txt"><a href="article_cat.php?id=4">更多>></a></div>
					<div class="index_gonggao_right_img"></div>
				</div>
				</div>
				<div class="index_gonggao_img">
					<div class="index_gonggao_imgs">
					   
<?php $this->assign('ads_id','1'); ?><?php $this->assign('ads_num','1'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?>
  
					
					</div>
					<div class="index_gonggao_img_border"></div>
					<div class="index_gonggao_imgs_center">
						
<?php echo $this->fetch('library/ad_position.lbi'); ?>
  
					</div>
					<div class="index_gonggao_img_border"></div>
						<div class="index_gonggao_imgs">
						     
<?php echo $this->fetch('library/ad_position.lbi'); ?>
  
						
					</div>
				</div>
			 </div>
								
			<div class="index_cont_txt">花果山推荐<span><a href="/category.php?id=1" target="_blank">更多 >></a></span></div>
			<?php echo $this->fetch('library/recommend_hot.lbi'); ?>
			<?php echo $this->fetch('library/recommend_best.lbi'); ?>
			
				
	</div>
	</div>
	
	
	
		
		 

   
</div>


<?php echo $this->fetch('library/page_footer.lbi'); ?>

</body>


<script type="text/javascript">
//轮播
										
var t = n = 0, count; 
$(document).ready(function(){ 
count=$("#banner_list a").length;  
$("#banner li").mouseover(function() { 
var i = $(this).attr("vid")-1;//获取Li元素内的值，即1，2，3，4 
n = i; 
if (i >= count) return; 
$("#banner_list a").filter(":visible").fadeOut(500).parent().children().eq(i).fadeIn();
$(this).css({"background":"url(themes/default/images/lunbo_btn.jpg)"}).siblings().css({"background":"url(themes/default/images/lunbo_btn_bai.jpg)"}); 
}); 
t = setInterval("showAuto()", 4000); 
$("#banner").hover(function(){clearInterval(t)}, function(){t = setInterval("showAuto()", 4000);}); 
}) 

function showAuto() 
{

if(n>=(count-1)){
		n=0;
}else{
		n=n+1;
	 }
$("#banner li").eq(n).trigger('mouseover');

} 
</script>

<script type="text/javascript"> 
new simpleScroll("ch_gg",5,40,5); 
//速度，移动宽度，停留时间
</script> 

</html>
